import utils from '@/assets/js/utils';

export default {
  queryDiscountThemeList: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountTheme/queryDiscountThemeList', callback);
  },
  queryDiscountThemeInfo: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountTheme/queryDiscountThemeInfo', callback);
  },

  createDiscountTheme: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountTheme/createDiscountTheme', callback);
  },

  deleteDiscountTheme: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountTheme/deleteDiscountTheme', callback);
  },

  queryDiscountCardPeriodList: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountTheme/queryDiscountCardPeriodList', callback);
  },

  generateDiscountCard: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountCard/generateDiscountCard', callback);
  },

  listMemberGrade: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/rest/grade/query', callback);
  },

  queryDiscountCardList: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountCard/queryDiscountCardList', callback);
  },


  listMemberUserInfo: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/rest/member/listMemberUserInfo', callback);
  },

  bindingOrUntieDiscountCard: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountCard/bindingOrUntieDiscountCard', callback);
  },

  queryBindingOrNoCount: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountCard/queryBindingOrNoCount', callback);
  },

  batchBindingOrUntieDiscountCard: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountCard/batchBindingOrUntieDiscountCard', callback);
  },

  discountCardHistory: function(data, callback) {
    utils.request.httpExecute(data, 'jic-member/memDiscountCard/discountCardHistory', callback);
  },
}
